<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML>
<html>
 <head>
  <title>编辑站点</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
       <link href="${webapp.context}assets/css/dpl-min.css" rel="stylesheet" type="text/css" />
    <link href="${webapp.context}assets/css/bui-min.css" rel="stylesheet" type="text/css" />
    <link href="${webapp.context}assets/css/page-min.css" rel="stylesheet" type="text/css" />
   <style type="text/css">
    code {
      padding: 0px 4px;
      color: #d14;
      background-color: #f7f7f9;
      border: 1px solid #e1e1e8;
    }
   </style>
 </head>
 <body>
  
  <div class="container">
    <form id ="J_Form" class="form-horizontal" action="${webapp.context}admin/webapp/edit.html" method="post">
      <h3>基本信息</h3>
      <div class="row">
          <div class="control-group span12">
                <label class="control-label"><s>*</s>名称：</label>
            <div class="controls">
                <input name="name" type="text" class="control-text" data-rules="{required:true}" value="${zhan.name}">
            </div>
          </div>
      </div>
      <div class="row">
          <div class="control-group span12">
                <label class="control-label"><s>*</s>描述：</label>
            <div class="controls control-row-auto">
                <textarea name="descript" class="control-row4 input-large" data-rules="{required:true}">${zhan.descript}</textarea>
            </div>
          </div>
      </div>
      <div class="row">
          <div class="control-group span12">
                <label class="control-label">备案号：</label>
            <div class="controls control-row-auto">
                <textarea name="beianCode" class="control-row4 input-large" data-rules="{required:false}">${zhan.beianCode}</textarea>
            </div>
          </div>
      </div>
      <div class="row">
          <div class="control-group span12">
                <label class="control-label">统计平台1：</label>
            <div class="controls control-row-auto">
            	<input name="statisticPlatformName1" type="text" class="control-text" data-rules="{required:false}" value="${zhan.statisticPlatformName1}">
            	<select id="statisticPlatformPosition1" name="statisticPlatformPosition1">
            		<option value="head">head</option>
            		<option value="body">body</option>
            		<option value="bottom">bottom</option>
            	</select>
            </div>
          </div>
      </div>
      <div class="row">
          <div class="control-group span12">
                <label class="control-label">统计代码1：</label>
            <div class="controls control-row-auto">
                <textarea name="statisticPlatformScript1" class="control-row4 input-large" data-rules="{required:false}">${zhan.statisticPlatformScript1}</textarea>
            </div>
          </div>
      </div>
      <div class="row">
          <div class="control-group span12">
                <label class="control-label">统计平台2：</label>
            <div class="controls control-row-auto">
            	<input name="statisticPlatformName2" type="text" class="control-text" data-rules="{required:false}" value="${zhan.statisticPlatformName2}">
            	<select  id="statisticPlatformPosition2" name="statisticPlatformPosition2">
            		<option value="head">head</option>
            		<option value="body">body</option>
            		<option value="bottom">bottom</option>
            	</select>
            </div>
          </div>
      </div>
      <div class="row">
          <div class="control-group span12">
                <label class="control-label">统计代码2：</label>
            <div class="controls control-row-auto">
                <textarea name="statisticPlatformScript2" class="control-row4 input-large" data-rules="{required:false}">${zhan.statisticPlatformScript2}</textarea>
            </div>
          </div>
      </div>
      <div class="row">
          <div class="control-group span12">
                <label class="control-label">统计平台3：</label>
            <div class="controls control-row-auto">
            	<input name="statisticPlatformName3" type="text" class="control-text" data-rules="{required:false}" value="${zhan.statisticPlatformName3}">
            	<select  id="statisticPlatformPosition3" name="statisticPlatformPosition3">
            		<option value="head">head</option>
            		<option value="body">body</option>
            		<option value="bottom">bottom</option>
            	</select>
            </div>
          </div>
      </div>
      <div class="row">
          <div class="control-group span12">
                <label class="control-label">统计代码3：</label>
            <div class="controls control-row-auto">
                <textarea name="statisticPlatformScript3" class="control-row4 input-large" data-rules="{required:false}">${zhan.statisticPlatformScript3}</textarea>
            </div>
          </div>
      </div>
      <hr/>
      <button type="submit" class="button button-primary">保存</button>
      <button type="reset" class="button">重置</button>
    </form>
  </div>
  <script type="text/javascript" src="${webapp.context}assets/js/jquery-1.8.1.min.js"></script>
  <script type="text/javascript" src="${webapp.context}assets/js/bui-min.js"></script>
  <script type="text/javascript" src="${webapp.context}assets/js/config-min.js"></script>
  <script type="text/javascript">
    BUI.use('${webapp.context}assets/js/common/page');
  </script>
  <script type="text/javascript">
    BUI.use('bui/form',function (Form) {
      var form = new Form.HForm({
        srcNode : '#J_Form'
      }).render();
    });
    
    $(function(){
    	$('#statisticPlatformPosition1').val("${zhan.statisticPlatformPosition1}");
    	$('#statisticPlatformPosition2').val("${zhan.statisticPlatformPosition2}");
    	$('#statisticPlatformPosition3').val("${zhan.statisticPlatformPosition3}");
    })
  </script>
<body>
</html>